package com.mm.cloud.lease.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mm.cloud.common.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 房源
 * </p>
 *
 * @author mr
 * @since 2025-06-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mm_housing")
public class Housing extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 公司id
     */
    private Long companyId;

    /**
     * 城市id
     */
    private Long cityId;

    /**
     * 区域id
     */
    private Long areaId;

    /**
     * 店面id
     */
    private Long storeId;

    /**
     * 分组id
     */
    private Long groupId;

    /**
     * 房源类型
     */
    private Long housingTypeId;

    /**
     * 房源编号
     */
    private String housingCode;

    /**
     * 物业地址id
     */
    private Long propertyAddressId;

    /**
     * 座栋
     */
    private String building;

    /**
     * 单元
     */
    private String unitName;

    /**
     * 是否有电梯 1-有 2-无
     */
    private Byte isLift;

    /**
     * 房间数量
     */
    private Integer roomCount;

    /**
     * 房间余量
     */
    private Integer restRoomCount;

    /**
     * 总楼层数量
     */
    private Integer totalFloor;

    /**
     * 租赁类型 1-自持 2-租赁
     */
    private Integer leaseType;

}
